package com.wellink.listviewsample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;

import com.wellink.listviewsample.com.wellink.listviewsample.adapter.MyArrayAdapter;

public class MyCustomActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.custom_arrayadapter_layout);

        ListView listView = findViewById(R.id.listview);

        String[] contents = {"Android", "demo", "Edit", "APP", "excel",
                "dota", "Button", "Circle", "excel", "back"};

        MyArrayAdapter adapter = new MyArrayAdapter(this,R.layout.custom_item,contents);
        listView.setAdapter(adapter);
    }
}
